All Questions
Tagged with filesystemsinode
134 questions
0votes
0answers
43views
Not able to modify inode metadata
I am working on a ext4 file-system tool that aims to delete files such that they are not recoverable later on. My goal is to clear the inode metadata of a deleted file, but despite my efforts, the ...
1vote
0answers
43views
HDD Write Performance: Pre-allocate vs. Append (Inode Impact?)
When writing a large (10GB) file to an HDD, I'm considering two approaches for writing the data: Pre-allocate: Create a 10GB file upfront and then write data sequentially (e.g., using fallocate on ...
2votes
1answer
99views
Why does inode usage go from 1% to 100% on a single file creation?
Inode usage go from 1 to 100% on a single file creation in a raid array on Debian. First, clean boot, then: sudo cryptsetup luksOpen /dev/RaidVG/LVMVol CVol sudo mount /dev/mapper/CVol /mnt/raid/ ...
0votes
1answer
101views
Determine bytes per inode ratio of existing ext4 filesystem
I created a filesystem following this guide: https://wiki.archlinux.org/title/Ext4#Create_a_new_ext4_filesystem However it looks like I made a mistake because the ratio for /dev/sdc doesn't add up: ...
1vote
1answer
157views
ext2 How to choose bytes/inode ratio
How approximately calc bytes-per-inode for ext2? I have 7.3GB storage (15320519 sectors 512B each). I have made ext2 filesystem with block size 4096 mke2fs /dev/sda2 -i 524288 -m 0 -L "SSD" -...
0votes
1answer
206views
Inode limit reached with free space available
Let's assume I was very unlucky and ran out of inodes in my ext4 filesystem but left with enough free space. Inode usage is 100%, but it has 50% disk free space. How can I resolve it?
0votes
0answers
65views
Inode of a Directory
Can you show with some picture or illustration what does an inode of a directory in ext4 filesystem? Especially, how is the list of directory entries (list of filename-inode pairings) stored?.
1vote
2answers
93views
Each file gets one inode block
A question was given to us by a lecturer: How many data blocks are needed to collect all the data in an EXT4 file system using inodes if the file size is 54 KB and there is a block size of 4KB. ...
0votes
0answers
111views
How do I get the number of hardlinks of a folder?
I am on Mac. However, I use gstat (GNU stat) so my understanding is that behavior should match linux. I cd to a folder. Then I use gstat --format=%h .. The output is 65. Next, I use gfind . -maxdepth ...
9votes
5answers
4kviews
Why can't hard links reference files on other filesystems?
I'm aware that this article exists: Why are hard links only valid within the same filesystem? But it unfortunately didn't click with me. https://www.kernel.org/doc/html/latest/filesystems/ext4/...
0votes
0answers
197views
Corrupt EXT4 filesystem, backup superblock no dice
I am a novice linux user, for some time. I need some help with recovering a corrupted EXT4 filesystem. Ideally, I would like to recover the filesystem intact. The drive in question is 'sda'. The ...
23votes
5answers
5kviews
Is '..' really a hard link?
This is a bit of a theoretical question, but it's important to use proper names for things. In UNIX/Linux file systems, .. points to the parent directory. However, we know that hard links cannot point ...
0votes
2answers
291views
Why is an open inode system call a security risk?
According to the accepted answer here, it is simply because you would not make the access checks at the directories leading up to that file. For example, with a call to openinode(inode #, flags). My ...
15votes
4answers
1kviews
Why doesn't read permission on directories reveal inode numbers?
As far as I understand, the "read" permission on directories allows one to list all names under that directory, and no more than that. Based on common understanding of FS design, if a ...
3votes
1answer
258views
mkfs ext2 ignore number-of-inodes
I want to make ext2 file system. I want to set "number-of-inodes" option to some number. I tried several values: if -N 99000 then Inode count: 99552 if -N 3500 then Inode count: 3904 if -N ...